<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SPOTO 办公自动化系统</title>
<script src="js/lib/jquery-1.4.2.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<link rel="stylesheet" href="style/reset.css" type="text/css"/>
<link rel="stylesheet" href="style/v1/main.css" type="text/css"/>
</head>

<body>
	<div class="top">
		<div class="top-icon"></div>
	</div>
    <div class="logo-top">
    	<div class="logo f-l"><h1>SPOTO自动化办公系统</h1></div>
        <div class="top-info f-r">
       	  <div class="user-info f-l">
            	<div class="user-icon f-l"></div>
                <div class="user">
                    <ul>
                        <li>用户名:${username}</li>
                        <li>姓名:${login_emp.name}</li>
                    </ul>
                </div>              
            </div>
            <div class="index-icon f-l m" onclick="location.href='main.jsp?result=${param.result}';" onmouseover="this.style.cursor='pointer'"></div>
            <div class="exit-icon f-l m" onclick="location.href='LogoutServlet';" onmouseover="this.style.cursor='pointer'"></div>
        </div>
        <div class="c"></div>
    </div>
    <div class="main clearfix">
    	<div class="main-left f-l" id="${param.result}">
        	<div class="nav" id="admin">
            	<ul>
                	<li class="employee-manage">
                    	<div class="nav-title cur-nav">
                        	<div class="icon f-l"></div>
                            <h3>员工管理</h3>                            
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                <a href="#" name="employee/add_employee.jsp">添加员工</a>
                                </li>
                                <li>
                                    <a href="#" id="employee_manage"
                                        name="EmployeeServlet?op_type=to_edit">员工编辑</a>
                                </li>
                                <li>
                                    <a href="#" name="employee/upload_employee.html">导入员工记录</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>
                    <li class="notice-manage">
                    	<div class="nav-title">
                        	<div class="icon f-l"></div>
                            <h3>公告管理</h3>
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                    <a href="#" name="NoticeServlet?op_type=to_add">新增公告</a>
                                </li>
                                <li>
                                    <a href="#" name="NoticeServlet?op_type=to_list">编辑公告</a>
                                </li>
                                <li>
                                    <a href="#" name="NoticeTypeServlet?op_type=to_list">公告类型管理</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>
                    <li class="product-manage">
                    	<div class="nav-title">
                        	<div class="icon f-l"></div>
                            <h3>产品管理</h3>
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                    <a href="#" name="product/add_product.jsp">新增产品</a>
                                </li>
                                <li>
                                    <a href="#" name="ProductServlet?op_type=search&searchTypeValue=&searchType=code&infor=">修改产品</a>
                                </li>                                
                                <li>
                                    <a href="#" name="product/upload_product.html">导入产品记录</a>
                                </li>
                                <li>
                                	<a href="#" name="EditProductTypeServlet?op_type=list">产品类型管理</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>
                    <li class="sales-manage">
                    	<div class="nav-title">
                        	<div class="icon f-l"></div>
                            <h3>销售管理和报表</h3>
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                    <a href="#" name="sales/add_sales.jsp">新增销售记录</a>
                                </li>
                                <li>
                                    <a href="#" name="SalesServlet?op_type=search&searchType=&infor=">修改销售记录</a>
                                </li>
                                <li>
                                    <a href="#" name="sales/welcome_chart.jsp">销售报表</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>                   
                </ul>
            </div>
            <div class="nav" id="employee">
            	<ul>
                	<li class="cunsumer-manage">
                    	<div class="nav-title">
                        	<div class="icon f-l"></div>
                            <h3>客户管理</h3>
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                    <a href="#" name="customer/add_customer.jsp">新增客户记录</a>
                                </li>
                                <li>
                                    <a href="#" name="CustomerServlet?op_type=to_edit">编辑客户记录</a>
                                </li>
                                <li>
                                    <a href="#" name="customer/upload_customer.html">导入客户记录</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>
                    <li class="self-manage">
                    	<div class="nav-title">
                        	<div class="icon f-l"></div>
                            <h3>个人设置</h3>
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                    <a href="#" name="EmployeeServlet?username=${username}&op_type=to_update">修改个人信息</a>
                                </li>
                                <li>
                                    <a href="#" name="employee/edit_psw.jsp">个人密码修改</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>
                    <li class="contact-manage">
                    	<a href="#" name="ContactServlet?op_type=to_list" style="color:#000;">
	                    	<div class="nav-title">
	                        	<div class="icon f-l"></div>
	                            <h3>通讯录管理</h3>
	                        </div>
                         </a>                        
                    </li>
                    <li class="sales-manage">
                    	<div class="nav-title">
                        	<div class="icon f-l"></div>
                            <h3>销售管理和报表</h3>
                        </div>
                        <div class="nav-bd hide">
                        	<ul>
                                <li>
                                    <a href="#" name="sales/add_sales.jsp">新增销售记录</a>
                                </li>
                                <li>
                                    <a href="#" name="SalesServlet?op_type=search&searchType=&infor=">修改销售记录</a>
                                </li>
                                <li>
                                    <a href="#" name="sales/welcome_chart.jsp?chartFlag=0">销售报表</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav-bottom hide"></div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="main-right">
        	<iframe name="iframe" id="iframe" src="welcome.html" scrolling="no" width="100%" height="1111px"></iframe>    	
        </div>
		<div class="c"></div>        
    </div>
    <div class="bottom">
    	<div class="welcom-bottom"></div>
    </div>
</body>
</html>
